package org.dromara.system.domain.bo;

import org.dromara.system.domain.PersonViolationAlarm;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 人员违规报警业务对象 person_violation_alarm
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PersonViolationAlarm.class, reverseConvertGenerate = false)
public class PersonViolationAlarmBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 关联作业ID
     */
    private Long zyid;

    /**
     * 报警时间
     */
    private Date bjsj;

    /**
     * 报警类型: 00-消警,01-作业人员擅自离场,02-无关人员擅自离场,03-人员超限,04-人员求救
     */
    private String bjlx;

    /**
     * 报警人员姓名
     */
    @NotBlank(message = "报警人员姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bjryxm;

    /**
     * 报警人员类型: 1-作业人员, 2-作业监护人
     */
    @NotNull(message = "报警人员类型: 1-作业人员, 2-作业监护人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bjrylx;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 消警时间
     */
    @NotNull(message = "消警时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date xjsj;


}
